home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scprogressbar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-06-19  |  1.8 KB  |  48 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           scrpogressbar.cpp  -  description
  9.                              -------------------
  10.     begin                : Sat Jan 19 2002
  11.     copyright            : (C) 2006 by Craig Bradney
  12.     email                : cbradney@zip.com.au
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23. #ifndef SCPROGRESSBAR_H
  24. #define SCPROGRESSBAR_H
  25.  
  26. #include <QProgressBar>
  27.  
  28. /*!
  29.  * @brief A Progress Bar that allows a number (X of Y) style or standard % indicator
  30.  */
  31. class ScProgressBar : public QProgressBar
  32. {
  33.     Q_OBJECT
  34.     
  35.     public:
  36.         ScProgressBar( bool showNumbers, QWidget *parent=0);
  37.         ScProgressBar( bool showNumbers, int totalSteps, QWidget* parent=0);
  38.         virtual bool setIndicator( QString & indicator, int progress, int totalSteps );
  39.  
  40.         ~ScProgressBar();
  41.         
  42.     protected:
  43.         bool m_useNumeric;
  44.  
  45. };
  46.  
  47. #endif
  48.